package com.fqcar.fqdf.entity;

/**
 * Created by lvsidong on 16/8/15.
 */
public enum SelectConditionEnum {
    SELECT_CONDITION_ALL("", "全部"),
    
    SELECT_CONDITION_CAR_STATE_0("手动下线", "0"),
    SELECT_CONDITION_CAR_STATE_1("待租", "1"),
    SELECT_CONDITION_CAR_STATE_2("维修", "2"),
    SELECT_CONDITION_CAR_STATE_4("低电下线", "4");

    public String stateName;
    public String stateCode;


    SelectConditionEnum(String stateName, String stateCode) {
        this.stateName = stateName;
        this.stateCode = stateCode;
    }

    public static String getStateName(String stateCode) {
        for (SelectConditionEnum obj : SelectConditionEnum.values()) {
            if (obj.stateCode.equals(stateCode)) {
                return obj.stateName;
            }
        }
        return null;
    }
}
